/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oi.eksekutif.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author jasoet
 */
@Table
@Entity
public class PembayaranTagihan implements Serializable {

    @Id
    @GeneratedValue
    private Long id;
    @ManyToOne
    private Tagihan tagihan;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date tanggal;
    @Column(length = 255)
    private String keterangan;
    private int jumlahPembayaran;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getJumlahPembayaran() {
        return jumlahPembayaran;
    }

    public void setJumlahPembayaran(int jumlahPembayaran) {
        this.jumlahPembayaran = jumlahPembayaran;
    }

    public String getKeterangan() {
        return keterangan;
    }

    public void setKeterangan(String keterangan) {
        this.keterangan = keterangan;
    }

    public Tagihan getTagihan() {
        return tagihan;
    }

    public void setTagihan(Tagihan tagihan) {
        this.tagihan = tagihan;
    }

    public Date getTanggal() {
        return tanggal;
    }

    public void setTanggal(Date tanggal) {
        this.tanggal = tanggal;
    }
}
